<!DOCTYPE HTML>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <meta name="generator" content="{{system.name}} {{system.version}}">
    <meta name="theme" content="{{theme.name}} {{theme.version}}">
    <title>{% block title%}{% endblock %}</title>
<script type="text/javascript">
</script>
    {%- if config.feedurl %}
    <link rel="alternate" type="application/rss+xml" href="{{config.feedurl}}" title="{{config.sitename}}" />
    {%- endif %}
    <link rel="stylesheet" href="{{static_url('one.css')}}" />
    <link rel="stylesheet" href="{{static_url('codes.css')}}" />
    <link rel="stylesheet" href="{{static_url('syntax.css')}}" />
    {%- block afterstyle %}{% endblock %}
  </head>
  <body>
    <div class="navigation" role="navigation">
      <div class="container">
        <!--<a class="home" href="{{content_url('index.html')}}">{{config.sitename}}</a>-->
        {%- if config.navigation %}
        <div class="menu">
          <ul>
            {%- for item in config.navigation %}
            <li><a href="{{content_url(item.link)}}">{{item.title}}</a></li>
            {%- endfor %}
          </ul>
        </div>
        {%- endif %}
      </div>
    </div>
    <div class="document">
      {%- block document %}
      {%- endblock %}
    </div>
    <div class="footer">
      {%- if config.footer %}
      <p>{{config.footer}}</p>
      {%- endif %}
      <p class="copyright">JavaScript 异常档案</p>
      <!--<p class="copyright">powered by <a href="{{system.homepage}}">{{system.name}}</a> {{system.version}}</p>-->
    </div>
    <script src="http://static.alipayobjects.com/seajs/1.2.1/sea.js" data-main="{{static_url('one.js')}}"></script>
    <script src="../static/codes.js"></script>
    {%- if config.github %}
    <div class="github"><a class="github-link" href="{{config.github}}">Fork me on GitHub</a></div>
    {%- endif %}

    {%- if config.google %}
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', '{{ config.google.id }}', '{{ config.google.domain }}');
      ga('send', 'pageview');

    </script>
    {%- endif %}


  </body>
</html>
